package bbs2.model;

public class BoardAccessRule {
    int id;
    int boardId;
    int userGroupId;
    boolean listArticles;
    boolean createArticle;
    boolean readArticle;
    boolean readMyArticle;
    boolean editArticle;
    boolean editMyArticle;
    boolean deleteArticle;
    boolean deleteMyArticle;
    boolean createComment;
    boolean manageBoard;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getBoardId() {
        return boardId;
    }

    public void setBoardId(int boardId) {
        this.boardId = boardId;
    }

    public int getUserGroupId() {
        return userGroupId;
    }

    public void setUserGroupId(int userGroupId) {
        this.userGroupId = userGroupId;
    }

    public boolean canListArticles() {
        return listArticles;
    }

    public void setListArticles(boolean listArticles) {
        this.listArticles = listArticles;
    }

    public boolean canCreateArticle() {
        return createArticle;
    }

    public void setCreateArticle(boolean createArticle) {
        this.createArticle = createArticle;
    }

    public boolean canReadArticle() {
        return readArticle;
    }

    public void setReadArticle(boolean readArticle) {
        this.readArticle = readArticle;
    }

    public boolean canReadMyArticle() {
        return readMyArticle;
    }

    public void setReadMyArticle(boolean readMyArticle) {
        this.readMyArticle = readMyArticle;
    }

    public boolean canEditArticle() {
        return editArticle;
    }

    public void setEditArticle(boolean editArticle) {
        this.editArticle = editArticle;
    }

    public boolean canEditMyArticle() {
        return editMyArticle;
    }

    public void setEditMyArticle(boolean editMyArticle) {
        this.editMyArticle = editMyArticle;
    }

    public boolean canDeleteArticle() {
        return deleteArticle;
    }

    public void setDeleteArticle(boolean deleteArticle) {
        this.deleteArticle = deleteArticle;
    }

    public boolean canDeleteMyArticle() {
        return deleteMyArticle;
    }

    public void setDeleteMyArticle(boolean deleteMyArticle) {
        this.deleteMyArticle = deleteMyArticle;
    }

    public boolean canCreateComment() {
        return createComment;
    }

    public void setCreateComment(boolean createComment) {
        this.createComment = createComment;
    }

    public boolean canManageBoard() {
        return manageBoard;
    }

    public void setManageBoard(boolean manageBoard) {
        this.manageBoard = manageBoard;
    }

}
